package com.example.springboot.mapper;

import com.example.springboot.controller.request.AdminLoginRequest;
import com.example.springboot.controller.request.BaseRequest;
import com.example.springboot.entity.Admin;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AdminMapper {


    //    @Select("select * from user")
    List<Admin> list();

    List<Admin> listByCondition(BaseRequest baseRequest);

    void save(Admin admin);


    Admin getByID(Integer id);

    void update(Admin admin);// 用id 更新该特定数据

    void delById(Integer id);

    Admin loginByNameAndPassword(AdminLoginRequest adminLoginRequest);
}
